package com.pzh.assignment.common.bean.vo;

import com.pzh.assignment.entity.TaskFinal;
import lombok.Data;

@Data
public class TaskFinalWorkloadVO {
    private Integer id;
    private String teacher;
    private String semester;
    private Float workload;

    public static TaskFinalWorkloadVO valueOf(TaskFinal taskFinal) {
        TaskFinalWorkloadVO vo = new TaskFinalWorkloadVO();
        vo.setTeacher(taskFinal.getTeacher());
        vo.setId(taskFinal.getId());
        vo.setSemester(taskFinal.getSemester());
        return vo;
    }

}
